<%@include
    file="/WEB-INF/jsp/taglibs/taglibs.jsp"
%>
<stripes:layout-render name="/WEB-INF/jsp/layouts/menu.jsp" title="Start tumblr">
<stripes:layout-component name="body">
    <stripes:messages />

    <stripes:form name="inputTumblr" beanclass="com.objecteffects.ilmp.web.action.TumblrStartUrlActionBean">
        <p>
            <stripes:errors />
        </p>

        Enter the url (address) of your tumblr blog.  You can leave off the
        .tumblr.com at the end if your blog's url ends with that.
        <p>
            <stripes:label for="tumblrUrl">
                Tumblr URL:
            </stripes:label>
        </p>
            <%--
            <sdyn:text
                name="tumblrUrl"
                list="tumblrUrls"
            />
            --%>
            <%-- note: the datalist id is not a css id. --%>
            <%--
            <datalist id="tumblrUrls">
                <c:forEach var="url" items="${actionBean.tumblrUrls}" varStatus="counter">
                    <option
                        value="${url}"
                    />
                </c:forEach>
            </datalist>
            --%>
            <c:forEach var="url" items="${actionBean.tumblrUrls}" varStatus="counter">
                <p class="radio">
                <stripes:radio
                    name="tumblrUrl"
                    value="${url}"
                /> ${url}
                </p>
            </c:forEach>

        <p class="tumblrUrl">
            <stripes:label for="tumblrUrl">
                Or, type in a new url:
            </stripes:label>
            <stripes:text
                name="newTumblrUrl"
            />
        </p>

        <p>
            If you haven't previously authorized <b>I love my posts</b> with tumblr
            then the next page will be the tumblr page where you tell tumblr
            we're authorized to work with your blog.
        </p>

        <p class="buttons">
            <stripes:submit
                name="proceed"
                value="Proceed"
            />
            <stripes:submit
                name="cancel"
                value="Cancel"
            />
        </p>
    </stripes:form>
</stripes:layout-component>
</stripes:layout-render>
